//
//  UIResourceTools.h
//  XMPPClient
//
//  Created by zhihuiguan on 14-4-10.
//  Copyright (c) 2014年 zhihuiguan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HexColor.h"

#define UIResourceMainColor [UIResourceTools mainColor]
#define UIResourceImage(name) [UIResourceTools imageNamed:(name)]
#define UIColor_a0a0a0 [UIColor colorWithHexString:@"a0a0a0"]
#define UIColor_f5f5f5f [UIColor colorWithHexString:@"f5f5f5"]
#define UIColor_ff7666 [UIColor colorWithHexString:@"ff7666"]


CG_INLINE UIImage * UIResourceBundleImage(NSString *name)
{
    NSString *strPath = [NSString stringWithFormat:@"default.bundle/%@.png",name];
    UIImage *image = [UIImage imageNamed:strPath];
    return image;
}

@interface UIResourceTools : NSObject
//各种配置
+(id)getCfg:(NSString *)key;
//主题色
+(UIColor *)mainColor;

+(UIImage *)imageNamed:(NSString *)name;
//导航条文字颜色
+(UIColor *)navigationBarTitleColor;
//在进入系统后状态栏样式
+(UIStatusBarStyle)statusBarStyle;
//在登录页面的的状态栏样式
+(UIStatusBarStyle)loginStatusBarStyle;
//tabbar文字选中时的颜色
+(UIColor *)tabBarItemTitleColorHighlighted;
//tabbar文字正常时的颜色
//+(UIColor *)tabBarItemTitleColorNormal;
//Bar按钮的文字颜色
+(UIColor *)barButtonItemTitleColor;
+(UIColor *)barButtonItemTintColor;
//导航条颜色
+(UIColor *)navigationBarTintColor;
//通知列表的Segment的颜色
+(UIColor *)segmentColor;

//程序里所有UISwitch的颜色
+(UIColor *)switchOnTintColor;

+(UIColor *)switchTintColor;
+(UIColor *)switchThumbTintColor;

//程序里所有用到纯色按钮的颜色
+(UIColor *)pureButtonColor;
//转发的section颜色
+(UIColor *)tableViewHeaderViewBackgroundColor;

///seg背景的颜色
+(UIColor *)segmentedControlBackgroundColor;
//seg边框颜色
+(UIColor *)segmentedControlBorderColor;
//seg选中的背景颜色
+(UIColor *)segmentedControlIndicatorColor;
//seg没被选中时候的颜色
+(UIColor *)segmentedControlTitleColorNormal;
//seg选中时候的颜色
+(UIColor *)segmentedControlTitleColorHighlighted;

@end
